<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.2/css/all.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css">

<script class="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"littlefxc.github.io","root":"/","images":"/images","scheme":"Mist","version":"8.2.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":false,"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/search.xml","localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false}};
  </script>
<meta name="description" content="内置监控工具 - jstat作用jstat全称JVM Statistics Monitoring Tool，用于监控JVM的各种运行状态。  TIPS此命令是实验性的，不受支持。   参考文档：Java 8：https:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;8&#x2F;docs&#x2F;technotes&#x2F;tools&#x2F;unix&#x2F;jstat.htmlJava 11：https:&#x2F;&#x2F;docs.oracle">
<meta property="og:type" content="article">
<meta property="og:title" content="内置监控工具 - jstat">
<meta property="og:url" content="http://littlefxc.github.io/2021/08/05/jstat/index.html">
<meta property="og:site_name" content="一年春又来">
<meta property="og:description" content="内置监控工具 - jstat作用jstat全称JVM Statistics Monitoring Tool，用于监控JVM的各种运行状态。  TIPS此命令是实验性的，不受支持。   参考文档：Java 8：https:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;8&#x2F;docs&#x2F;technotes&#x2F;tools&#x2F;unix&#x2F;jstat.htmlJava 11：https:&#x2F;&#x2F;docs.oracle">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2021-08-05T01:52:54.000Z">
<meta property="article:modified_time" content="2022-05-10T01:42:55.392Z">
<meta property="article:author" content="一年春又来">
<meta property="article:tag" content="jvm">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="http://littlefxc.github.io/2021/08/05/jstat/">


<script class="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>
<title>内置监控工具 - jstat | 一年春又来</title>
  




  <noscript>
  <style>
  body { margin-top: 2rem; }

  .use-motion .menu-item,
  .use-motion .sidebar,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header {
    visibility: visible;
  }

  .use-motion .header,
  .use-motion .site-brand-container .toggle,
  .use-motion .footer { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle,
  .use-motion .custom-logo-image {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line {
    transform: scaleX(1);
  }

  .search-pop-overlay, .sidebar-nav { display: none; }
  .sidebar-panel { display: block; }
  </style>
</noscript>

<link rel="alternate" href="/atom.xml" title="一年春又来" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <h1 class="site-title">一年春又来</h1>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu">
        <li class="menu-item menu-item-home"><a href="/" rel="section"><i class="home                          //首页 fa-fw"></i>首页</a></li>
        <li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="archive          //归档 fa-fw"></i>归档</a></li>
        <li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="th           //分类 fa-fw"></i>分类</a></li>
        <li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="tags                     //标签 fa-fw"></i>标签</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup"><div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" maxlength="80"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close" role="button">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div class="search-result-container no-result">
  <div class="search-result-icon">
    <i class="fa fa-spinner fa-pulse fa-5x"></i>
  </div>
</div>

    </div>
  </div>

</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#%E5%86%85%E7%BD%AE%E7%9B%91%E6%8E%A7%E5%B7%A5%E5%85%B7-jstat"><span class="nav-text">内置监控工具 - jstat</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BD%9C%E7%94%A8"><span class="nav-text">作用</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E"><span class="nav-text">使用说明</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E8%BE%93%E5%87%BA%E4%BF%A1%E6%81%AF"><span class="nav-text">输出信息</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BD%BF%E7%94%A8%E7%A4%BA%E4%BE%8B"><span class="nav-text">使用示例</span></a></li></ol></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">一年春又来</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">234</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">38</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">125</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://littlefxc.github.io/2021/08/05/jstat/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="一年春又来">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="一年春又来">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          内置监控工具 - jstat
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2021-08-05 09:52:54" itemprop="dateCreated datePublished" datetime="2021-08-05T09:52:54+08:00">2021-08-05</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2022-05-10 09:42:55" itemprop="dateModified" datetime="2022-05-10T09:42:55+08:00">2022-05-10</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/Java/" itemprop="url" rel="index"><span itemprop="name">Java</span></a>
        </span>
    </span>

  
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <h1 id="内置监控工具-jstat"><a href="#内置监控工具-jstat" class="headerlink" title="内置监控工具 - jstat"></a>内置监控工具 - jstat</h1><h2 id="作用"><a href="#作用" class="headerlink" title="作用"></a>作用</h2><p>jstat全称JVM Statistics Monitoring Tool，用于监控JVM的各种运行状态。</p>
<blockquote>
<p>TIPS<br>此命令是实验性的，不受支持。</p>
</blockquote>
<blockquote>
<p>参考文档：<br>Java 8：<a target="_blank" rel="noopener" href="https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstat.html">https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jstat.html</a><br>Java 11：<a target="_blank" rel="noopener" href="https://docs.oracle.com/en/java/javase/11/tools/jstat.html">https://docs.oracle.com/en/java/javase/11/tools/jstat.html</a></p>
</blockquote>
<h2 id="使用说明"><a href="#使用说明" class="headerlink" title="使用说明"></a>使用说明</h2><p>命令如下：</p>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">➜ jstat -h</span><br><span class="line">Usage: jstat --<span class="built_in">help</span>|-options</span><br><span class="line">       jstat -&lt;option&gt; [-t] [-h&lt;lines&gt;] &lt;vmid&gt; [&lt;interval&gt; [&lt;count&gt;]]</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">Definitions:</span><br><span class="line">  &lt;option&gt;      指定参数，取值可用jstat -options查看</span><br><span class="line">  &lt;vmid&gt;        VM标识，格式为&lt;lvmid&gt;[@&lt;hostname&gt;[:&lt;port&gt;]]</span><br><span class="line">                &lt;lvmid&gt;：如果lvmid是本地VM，那么用进程号即可; </span><br><span class="line">                &lt;hostname&gt;：目标JVM的主机名;</span><br><span class="line">                &lt;port&gt;：目标主机的rmiregistry端口;</span><br><span class="line">  -t            用来展示每次采样花费的时间</span><br><span class="line">  &lt;lines&gt;       每抽样几次就列一个标题，默认0，显示数据第一行的列标题</span><br><span class="line">  &lt;interval&gt;    抽样的周期，格式使用:&lt;n&gt;[<span class="string">&quot;ms&quot;</span>|<span class="string">&quot;s&quot;</span>]，n是数字，ms/s是时间单位，默认是ms</span><br><span class="line">  &lt;count&gt;       采样多少次停止</span><br><span class="line">  -J&lt;flag&gt;      将&lt;flag&gt;传给运行时系统，例如：-J-Xms48m</span><br><span class="line">  -? -h --<span class="built_in">help</span>  Prints this <span class="built_in">help</span> message.</span><br><span class="line">  -<span class="built_in">help</span>         Prints this <span class="built_in">help</span> message.</span><br></pre></td></tr></table></figure>

<p>option取值如下：</p>
<ul>
<li>class：显示类加载器的统计信息</li>
<li>compiler：显示有关Java HotSpot VM即时编译器行为的统计信息</li>
<li>gc：显示有关垃圾收集堆行为的统计信息</li>
<li>gccapacity：统计各个分代（新生代，老年代，持久代）的容量情况</li>
<li>gccause：显示引起垃圾收集事件的原因</li>
<li>gcnew：显示有关新生代行为的统计信息</li>
<li>gcnewcapacity：显示新生代容量</li>
<li>gcold：显示老年代、元空间区的统计信息</li>
<li>gcoldcapacity：显示老年代的容量</li>
<li>gcmetacapacity：显示元空间的容量</li>
<li>gcutil：显示有关垃圾收集统计信息的摘要</li>
<li>printcompilation：显示Java HotSpot VM编译方法统计信息</li>
</ul>
<h2 id="输出信息"><a href="#输出信息" class="headerlink" title="输出信息"></a>输出信息</h2><p>class:</p>
<ul>
<li>Loaded：当前加载的类的数量</li>
<li>Bytes：当前加载的空间(单位KB)</li>
<li>Unloaded：卸载的类的数量Number of classes unloaded.</li>
<li>Bytes：当前卸载的空间(单位KB)</li>
<li>Time：执行类加载/卸载操作所花费的时间</li>
<li>compiler：</li>
</ul>
<p>compiler:</p>
<ul>
<li>Compiled：执行了多少次编译任务</li>
<li>Failed：多少次编译任务执行失败</li>
<li>Invalid：无效的编译任务数</li>
<li>Time：执行编译任务所花费的时间</li>
<li>FailedType：上次失败的编译的编译类型</li>
<li>FailedMethod：上次失败的编译的类名和方法</li>
</ul>
<p>gc：</p>
<ul>
<li>S0C：第一个存活区(S0)的容量（KB）</li>
<li>S1C：第二个存活区(S1)的容量（KB）</li>
<li>S0U：第一个存活区(S0)使用的大小（KB）</li>
<li>S1U：第二个存活区(S1)使用的大小（KB）</li>
<li>EC：伊甸园空间容量（KB）</li>
<li>EU：伊甸园使用的大小（KB）</li>
<li>OC：老年代容量（KB）</li>
<li>OU：老年代使用的大小（KB）</li>
<li>MC：元空间的大小（KB）</li>
<li>MU：元空间使用的大小（KB）</li>
<li>CCSC：压缩的类空间大小（KB）</li>
<li>CCSU：压缩类空间使用的大小（KB）</li>
<li>YGC：年轻代垃圾收集事件的数量</li>
<li>YGCT：年轻代垃圾回收时间</li>
<li>FGC：Full GC事件的数量</li>
<li>FGCT：Full GC回收时间</li>
<li>GCT：垃圾收集总时间</li>
</ul>
<p>gccapacity：</p>
<ul>
<li>NGCMN：最小新生代容量（KB）</li>
<li>NGCMX：最大新生代容量（KB）</li>
<li>NGC：当前的新生代容量（KB）</li>
<li>S0C：第一个存活区(S0)的当前容量（KB）</li>
<li>S1C：第二个存活区(S1)的当前容量（KB）</li>
<li>EC：当前伊甸园容量（KB）</li>
<li>OGCMN：最小老年代容量（KB）</li>
<li>OGCMX：最大老年代容量（KB）</li>
<li>OGC：当前老年代容量（KB）</li>
<li>OC：当前old space容量（KB）</li>
<li>MCMN：最小元空间容量（KB）</li>
<li>MCMX：最大元空间容量（KB）</li>
<li>MC：当前元空间的容量（KB）</li>
<li>CCSMN：压缩的类空间最小容量（KB）</li>
<li>CCSMX：压缩的类空间最大容量（KB）</li>
<li>CCSC：当前压缩的类空间大小（KB）</li>
<li>YGC：年轻代GC事件的数量</li>
<li>FGC：Full GC事件的数量</li>
</ul>
<p>gccause：其他展示列和-gcutil一致</p>
<ul>
<li>LGCC：导致GC的原因</li>
<li>GCC：导致当前GC的原因</li>
</ul>
<p>gcnew：</p>
<ul>
<li>S0C：第一个存活区(S0)的容量（KB）</li>
<li>S1C：第二个存活区(S1)的容量（KB）</li>
<li>S0U：第一个存活区(S0)的利用率（KB）</li>
<li>S1U：第二个存活区(S1)的利用率（KB）</li>
<li>TT：老年代阈值</li>
<li>MTT：最大老年代阈值</li>
<li>DSS：期望的存活区大小（KB）</li>
<li>EC：当前伊甸园容量（KB）</li>
<li>EU：伊甸园利用率（KB）</li>
<li>YGC：年轻代GC事件的数量</li>
<li>YGCT：年轻代垃圾回收时间</li>
</ul>
<p>gcnewcapacity：</p>
<ul>
<li>NGCMN：最小年轻代容量（KB）</li>
<li>NGCMX：最大年轻代容量（KB）</li>
<li>NGC：当前年轻代容量（KB） </li>
<li>S0CMX：最大S0容量（KB） </li>
<li>S0C：当前S0容量（KB） </li>
<li>S1CMX：最大S1容量（KB） </li>
<li>S1C：当前S1容量（KB） </li>
<li>ECMX：最大伊甸园容量（KB） </li>
<li>EC：当前伊甸园容量（KB） </li>
<li>YGC：年轻代GC事件的数量 </li>
<li>FGC：Full GC事件的数量</li>
</ul>
<p>gcold：</p>
<ul>
<li>MC：当前元空间使用大小（KB）</li>
<li>MU：元空间利用率（KB）</li>
<li>CCSC：压缩的类的大小（KB）</li>
<li>CCSU：使用的压缩类空间（KB）</li>
<li>OC：当前的老年代空间容量（KB）</li>
<li>OU：来年代空间利用率（KB）</li>
<li>YGC：年轻代GC事件的数量</li>
<li>FGC：Full GC事件的数量</li>
<li>FGCT：Full GC垃圾收集时间</li>
<li>GCT：总垃圾收集时间</li>
</ul>
<p>gcoldcapacity：</p>
<ul>
<li>OGCMN：最小老年代容量（KB）</li>
<li>OGCMX：最大老年代容量（KB）</li>
<li>OGC：当前老年代容量（KB）</li>
<li>OC：当前old space容量（KB）</li>
<li>YGC：年轻代GC事件的数量</li>
<li>FGC：Full GC事件的数量</li>
<li>FGCT：Full GC垃圾收集时间</li>
<li>GCT：总垃圾收集时间</li>
</ul>
<p>gcmetacapacity：</p>
<ul>
<li>MCMN：最小元空间容量（KB）</li>
<li>MCMX：最大元空间容量（KB）</li>
<li>MC：元空间大小（KB）</li>
<li>CCSMN：压缩的类空间最小容量（KB）</li>
<li>CCSMX：压缩的类空间最大容量（KB）</li>
<li>YGC：年轻代GC事件的数量</li>
<li>FGC：Full GC事件的数量</li>
<li>FGCT：Full GC垃圾收集时间</li>
<li>GCT：总垃圾收集时间</li>
</ul>
<p>gcutil：</p>
<ul>
<li>S0：第一个存活区(S0)利用率</li>
<li>S1：第二个存活区(S1)利用率</li>
<li>E：Eden空间利用率</li>
<li>O：老年代空间利用率</li>
<li>M：元空间利用率</li>
<li>CCS：压缩的类空间利用率</li>
<li>YGC：年轻代GC事件的数量</li>
<li>YGCT：年轻代垃圾回收时间</li>
<li>FGC：Full GC事件的数量</li>
<li>FGCT：Full GC垃圾收集时间</li>
<li>GCT：总垃圾收集时间</li>
</ul>
<p>printcompilation：</p>
<ul>
<li>Compiled：由最近编译的方法去执行的编译任务数</li>
<li>Size：最近编译的方法的字节码的字节数</li>
<li>Type：最近编译的方法的编译类型。</li>
<li>Method：标识最近编译的方法的类名和方法名。类名使用 / 代替点 . 作为名称空间分隔符；方法名称是指定类中的方法。这两个字段的格式与HotSpot -XX:+PrintCompilation 选项一致。</li>
</ul>
<h2 id="使用示例"><a href="#使用示例" class="headerlink" title="使用示例"></a>使用示例</h2><p>示例1：查看21891这个进程的gc相关信息，每隔250ms采样1次，采样7次</p>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">jstat -gcutil 21891 250 7</span><br></pre></td></tr></table></figure>

<p>示例2：显示有关新生代行为的统计信息，重复列标题：</p>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">jstat -gcnew -h3 21891 250</span><br></pre></td></tr></table></figure>

<p>示例3：查看remote.domain机器上的40496这个进程有关垃圾收集统计信息的摘要，每隔1秒采样1次：</p>
<figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">jstat -gcutil 40496@remote.domain 1000</span><br></pre></td></tr></table></figure>
    </div>

    
    
    

    <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/jvm/" rel="tag"># jvm</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/2021/08/04/%E7%BA%BF%E7%A8%8B%E6%B1%A0ThreadPoolExecutor/" rel="prev" title="线程池ThreadPoolExecutor">
                  <i class="fa fa-chevron-left"></i> 线程池ThreadPoolExecutor
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/2021/08/07/synchronized%E9%94%81%E5%8D%87%E7%BA%A7%E8%BF%87%E7%A8%8B%E5%92%8C%E9%94%81%E7%8A%B6%E6%80%81/" rel="next" title="synchronized锁升级过程和锁状态">
                  synchronized锁升级过程和锁状态 <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>







<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      const activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      const commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">一年春又来</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/mist/" class="theme-link" rel="noopener" target="_blank">NexT.Mist</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/schemes/muse.js"></script><script src="/js/next-boot.js"></script>

  
<script src="/js/local-search.js"></script>






  





</body>
</html>
